/**
 * @description 处理成功的响应
 */
function success(res, message = "操作成功", data = null, code = 200) {
  res.status(code).json({
    status: true,
    code,
    message,
    data,
  });
}

module.exports = {
  success,
};
